<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function btnCli(){
				//获取id为btn的元素
				var obj=document.getElementById("btn");
				
				//获取value属性
				alert(obj.value)
			}
		</script>
	</head>
	<body>
		<input value="确定" id="btn" type="button" onclick="btnCli()"/>
	</body>
</html>
